<template>
  <div class="container">
    <MyHeadNav>我的评价</MyHeadNav>
    <Tabs :titleData="titleData">
      <template v-slot:content1>
        <div class="product">
          <div class="pic">
            <img src="../../assets/image/01.jpg" alt="" />
          </div>
          <div class="desc">
            <p>电脑桌</p>
            <p>简约又好看的桌子，嗯</p>
            <p>能读书，能吃饭，能打游戏</p>
            <p class="gold">¥ 1299</p>
            <p class="time">购买时间: 2020/12/12</p>
            <div>去评价</div>
            <span class="finsh">交易完成</span>
          </div>
        </div>
      </template>
    </Tabs>
  </div>
</template>

<script>
import MyHeadNav from "../../components/MyNavHead";
import Tabs from "./tabs/Tabs";
export default {
  name: "Comment",
  components: {
    MyHeadNav,
    Tabs,
  },
  data() {
    return {
      titleData: ["待评价", "已评价"],
    };
  },
};
</script>

<style scoped lang="less">
.container{
    width: 100%;
    background: #f1f1f1;
}
.product {
  background-color: white;
  height: 2.8rem;
  width: 95%;
  margin: 0.2rem auto;
  display: flex;
  box-sizing: border-box;
}
.tabs-box {
  margin-top: 1.2rem;
}
.tabs-box1 {
  margin-top: 0.2rem;
}
.pic img {
  height: 2rem;
  width: 2.3rem;
  margin-top: 0.3rem;
  margin-left: 0.1rem;
  margin-bottom: 0.05rem;
  flex: 4;
}
.pic p {
  font-size: 0.2rem;
  text-align: left;
  margin-left: 0.1rem;
}
.desc {
  position: relative;
  margin-top: 0.3rem;
  flex: 6;
  position: relative;
}
.desc p {
  text-align: left;
  margin: 0.1rem;
  margin-left: 0.2rem;
  font-size: 0.24rem;
  line-height: 0.25rem;
  color: rgba(0, 0, 0, 0.8);
}
.desc .gold {
  margin-top: 0.2rem;
  font-size: 0.22rem;
  color: red;
  font-weight: bold;
}
.desc .time {
  margin-top: 0.3rem;
}
.desc div {
  color: #ff5555;
  border: 1px solid #ff5555;
  border-radius: 3px;
  background-color: white;
  font-size: 0.2rem;
  width: 1.5rem;
  position: absolute;
  right: 0.2rem;
  bottom: 0.2rem;
}
.desc .finsh {
  position: absolute;
  top: 0;
  right: 0.2rem;
  font-size: 12px;
  color: #ff0000;
}
</style>